<!DOCTYPE html>
<html>
<head>
  <title>iHsu</title>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>
<body>
<div id='topbar'>
	<span class="left">
    <a href="http://www.ihsu.net">iHSU Home</a>
  </span>
  <span class="right">
    <% if current_user %>
      <%= link_to "登出", logout_path %>
    <% else %>
      <%= link_to "登录", login_path %>
    <% end %>
  </span>
  <span class="right">
    <%= link_to "注册", new_admin_user_path %>
  </span>
  <span class="clear"></span>
</div>
<%= yield %>
<div class="footer">
	<div class="wrapper">
        <span style="color: gray;">©2012</span> - <a href="http://yuenwahblog.appspot.com">Yuenwah HSU</a><br>
        Powered by <a href="http://www.ihsu.net" target="_blank">iHSU,</a> 
        Theme by <a href="http://www.ihsu.net" target="_blank">iHSU</a>.
	</div>
</div>
</body>
</html>
